#! /bin/bash
#用于生成任意个.in空文件
in_file_num=`ls ./data/`
if [ -z "$in_file_num"];then
  mkdir ./data
fi
in_file_num=`ls ./data/`
i=1
if $in_file_num
then
  echo "data文件夹空,建立$1个in空白in文件"
  while ((`expr $1` >= $i)) 
  do
    > ./data/"${i}.in"
    echo ${i}
    let "i++"
  done
else
  echo "data文件夹非空"
fi